package com.chen.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;

import com.chen.common.CommonDO;
import lombok.*;
import lombok.experimental.Accessors;
import org.springframework.web.bind.annotation.ExceptionHandler;

/**
 * <p>
 * 员工表
 * </p>
 *
 * @author chen
 * @since 2024-04-10
 */
@Data
@Accessors(chain = true)
@TableName("emp")
@Builder
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
public class EmpDO extends CommonDO implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @TableField("username")
    private String username;

    @TableField("password")
    private String password;

    @TableField("name")
    private String name;

    @TableField("gender")
    private Byte gender;

    @TableField("image")
    private String image;

    @TableField("job")
    private Byte job;

    @TableField("entrydate")
    private LocalDate entrydate;

    @TableField("dept_id")
    private Integer deptId;


}
